package com.kede.service.impl;

import com.kede.entity.Role;
import com.kede.entity.UserRole;
import com.kede.dao.UserRoleDao;
import com.kede.service.UserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 【请填写作者】
 * @since 2020-04-11
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleDao, UserRole> implements UserRoleService {

    @Autowired
    UserRoleDao userRoleDao;
    @Override
    public Role getRoleByUid(Long id) {
        return userRoleDao.getRoleByUid(id);
    }

    @Override
    public void setRole(String roleid, String uid) {
        userRoleDao.setRole(roleid, uid);
    }
}
